<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="dns-prefetch" href="https://cdn.jsdelivr.net" />
</head>
<body>
    <div id="app">
        <div> <span>静态根节点</span></div>
       <div>非静态根节点</div> 
       <button @click="clickBtn">{{ count }}</button>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data(){
                return  {
                    count: 1
                }
            },
            methods: {
                clickBtn(){
                    this.count += 1
                }
            }
        })
    </script>
    
</body>
</html>